﻿using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using Rhino.Mocks;

namespace TSVNAddinUtils.Test
{
	[TestFixture]
	public class AddLookInFolderCommandFixture
	{
		[Test]
		public void Exec()
		{
			string currentDirectory = Environment.CurrentDirectory;

			var visualStudioConfig = MockRepository.GenerateMock<VisualStudioConfig>((RegistryAdapter)null, null);
			visualStudioConfig.Expect(x => x.AddLookInFolder(currentDirectory));

			AddLookInFolderCommand command = new AddLookInFolderCommand(visualStudioConfig);
			command.Exec(new string[0]);

			visualStudioConfig.VerifyAllExpectations();
		}
	}
}
